﻿@using ASoft.Web.Base;
@{
    Layout = null;
}
<!DOCTYPE html>

<html>
<head>
    <title>LYYH</title>
    <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.3.0/jquery.mobile-1.3.0.min.js"></script>
    <style type="text/css">
    </style>
</head>
<body>
    @{
        var customs = CurrentContext.Customs.ToList();
        var currentCustom = CurrentContext.Customs.FirstOrDefault(p => string.Equals(p.Code, CurrentContext.CustomCode, StringComparison.CurrentCultureIgnoreCase));
    }
    <form name="form1" id="form1" method="post" action="/waproom/changecurrentcustomcode">
        <div data-role="header">
            <table>
                <tr>
                    <th>
                        <button type="button" data-theme="b" onclick="window.location.reload()">刷新</button></th>
                    <th>
                        <select name="customcode" id="customcode" onchange="form1.submit()">
                            @foreach (var item in customs)
                            {
                                <option @(item.Equals(currentCustom) ? "selected='selected'" : "") value="@item.Code">@item.ToString()</option>
                            }
                        </select></th>
                </tr>
            </table>
        </div>
    </form>
    @RenderBody()
</body>
</html>
